package zim;

import java.io.File;
import java.io.FileNotFoundException;

public class App {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Algorithms algs = new Algorithms();
		int attempts = 5;
		int chars = 9;
		Dataset data1,data2;
		try {
			data1 = new Dataset();
			data1.loadData(new File("breast-cancer-wisconsin-zeros.data"), chars);
			//data.printData();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
			return;
		}
			
		for(int i=1; i<=chars; i++) {		
			for(int j=0; j<attempts; j++) {
				data2 = data1.divide();
				algs.run(data1, data2, i);
				algs.run(data2, data1, i);
				data1.getData().addAll(data2.getData());
			}						
		}
	}


}
